//
//  TicketInfo.swift
//  AirlineReservation
//
//  Created by Kevin on 2020/1/22.
//  Copyright © 2020 Kevin. All rights reserved.
//

import UIKit

class TicketInfo: NSObject {

    @objc var craft:String?
    @objc var food:String?
    @objc var flight_name:String?
    @objc var flight_number:String?
    @objc var cabinname:String?
    @objc var city:String?
    @objc var endcity:String?
    @objc var depart_terminal:String?
    @objc var arrival_terminal:String?
    @objc var depart_date:String?
    @objc var arrival_date:String?
    @objc var depart_time:String?
    @objc var arrival_time:String?
    @objc var ticket_price:String?
    @objc var ticket_count:String?
    @objc var luggage:String?
    @objc var mileage:String?
    @objc var miletime:String?
    @objc var orderid:String?
    @objc var orderprice:Int = 0
    
    override init() {
        
    }
    
    init(dict:[String:Any]) {
        super.init()
        setValuesForKeys(dict)
    }
    
    override func setValue(_ value: Any?, forUndefinedKey key: String) {
        
    }
    
    override var description: String {
        return dictionaryWithValues(forKeys: ["craft","food","flight_number","cabinname","city","endcity","depart_terminal","arrival_terminal","depart_date","arrival_date","ticket_price","ticket_count","luggage","mileage","miletime"]).description
    }
}
